package com.jm.common.tool.image;

import net.coobird.thumbnailator.Thumbnails;
import net.coobird.thumbnailator.name.Rename;

import java.io.File;
import java.io.IOException;

/**
 * @author kong
 */
public class ImageQualityTool {

    public static void main(String[] args) throws IOException {
        //
        Thumbnails.of(new File("C:\\Users\\kong\\Desktop\\九寨沟照片-诺日朗瀑布.tif"))
                .size(800, 1000)
                .outputFormat("jpg")
//                .scale(1f)
//                .outputQuality(0.5)
                .toFiles(Rename.PREFIX_DOT_THUMBNAIL);
    }
}
